package sicnu.cs.aps.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import sicnu.cs.aps.domain.entity.GroupMemo;
import sicnu.cs.aps.domain.form.GroupMemoForm;
import sicnu.cs.aps.domain.form.QueryForm;
import sicnu.cs.aps.mapper.GroupMemoMapper;
import sicnu.cs.aps.service.IGroupMemoService;

import java.util.List;

/**
 * @author CaiKe
 * @date 2022/5/26 16:45
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class GroupMemoServiceImpl extends ServiceImpl<GroupMemoMapper, GroupMemo> implements IGroupMemoService {

    private final GroupMemoMapper groupMemoMapper;

    @Override
    public List<GroupMemo> listGroupMemos(Long userId) {
        return groupMemoMapper.getGroupMemosByUserId(userId);

    }
}